﻿import * as moment from 'moment';

export class TimerHelper {
    static IsInMonth(year: number, month: number, date: moment.Moment): boolean {
        let startDate = new Date(year, month - 2, 22);
        let endDate = new Date(year, month - 1, 21);
        let time = date.toDate();
        return time <= endDate && time >= startDate;
    }
}
